package com.chen.nongansampling.adapter;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.chen.nongansampling.fragment.notice.NoticeInfoFragment;
import com.chen.nongansampling.fragment.notice.NoticeKnowledgeFragment;
import com.chen.nongansampling.fragment.notice.NoticePushFragment;

//public class TabFragmentAdapter extends FragmentPagerAdapter {
//
//
//    private String [] mTitles;
//    public TabFragmentAdapter(FragmentManager fm, String [] mTitles) {
//        super(fm);
//        this.mTitles=mTitles;
//    }
//
////    @Override
////    public Fragment getItem(int position) {
////        if (position==0){
////            return  new NoticeInfoFragment();
////        }else if (position==1){
////            return new NoticeKnowledgeFragment();
////        }else if (position==2){
////            return new NoticePushFragment();
////        }
////        return new NoticeInfoFragment();
////    }
//
//    @Override
//    public int getCount() {
//        return mTitles.length;
//    }
//
//
//    @Override
//    public Fragment getItem(int position) {
//
//
//    }
//}
